package com.github.wxiaoqi.security.common.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

import io.swagger.annotations.ApiModelProperty;

/**
 * @author Zhao Junjian
 */
// @Getter
// @Setter
// @NoArgsConstructor
// @ToString(callSuper = true)
// @EqualsAndHashCode
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler", "fieldHandler" }, ignoreUnknown = true)
public class RestfulResponse implements Response {
	private static final long serialVersionUID = -7443304902819898146L;

	public static final int DEFAULT_OK = 0;

	@ApiModelProperty(value = "描述", example = "操作成功", required = false)
	private String message;
	/**
	 * [M] 平台状态码
	 */
	@JsonProperty("code")
	@ApiModelProperty(value = "平台状态码", example = "0", required = true)
	private int code = DEFAULT_OK;
	
	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}
}
